package com.lwx.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lwx.sys.domain.User;
import com.lwx.sys.utils.DataGridView;
import com.lwx.sys.vo.UserVo;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lwx
 * @since 2020-04-03
 */
public interface UserService extends IService<User> {

    User queryUserByUserName(String username);
    
    DataGridView loadAllUser(UserVo userVo);

    void deleteUser(Integer id);

    void batchDeleteUser(Integer[] ids);

    void addUser(User user);

    void updateUser(User user);

    Integer queryUserMaxOrderNum();

    List<User> queryUserByDeptId(Integer deptId);

    User queryUserByUserId(Integer userId);

    void saveUserRole(Integer userId,Integer[] rids);

    void changeUser(User user, HttpSession session);
}
